package yl.hs.bmipfull.pojo.material;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;

/**
 * 作用:  供应商实体类 <br/>
 * 创建时间: 2021-05-18 15:21 <br/>
 *
 * @author 吴高丰
 */
@DBTable(disName = "供应商信息", mapCode = "supplier")
public class SupplierEntity extends BaseEntity {
    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "供应商信息编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "YCGY")
    private String sn;
    /**
     * 供应商名称
     */
    @DBField(disName = "供应商名称")
    private String supplierName;
    /**
     * 供应商名称拼音
     */
    private String supplierNamePY;
    /**
     * 供应商地址
     */
    @DBField(disName = "供应商地址")
    private String address;
    /**
     * 联系人姓名
     */
    @DBField(disName = "联系人姓名")
    private String contactName;
    /**
     * 联系人电话
     */
    @DBField(disName = "联系人电话")
    private String contactPhone;
    /**
     * 开票限额
     */
    @DBField(disName = "开票限额")
    private BigDecimal maxInvoiceAmount;
    /**
     * 供应商类型
     */
    @DBField(disName = "供应商类型")
    private Short supType;
    /**
     * 组织代码
     */
    private String organizationCode;
    /**
     * 备注
     */
    @DBField(disName = "备注")
    private String remark;
    /**
     * 状态
     */
    private Short state;

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getSupplierName() {
        return this.supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierNamePY() {
        return this.supplierNamePY;
    }

    public void setSupplierNamePY(String supplierNamePY) {
        this.supplierNamePY = supplierNamePY;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContactName() {
        return this.contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return this.contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public BigDecimal getMaxInvoiceAmount() {
        return this.maxInvoiceAmount;
    }

    public void setMaxInvoiceAmount(BigDecimal maxInvoiceAmount) {
        this.maxInvoiceAmount = maxInvoiceAmount;
    }

    public Short getSupType() {
        return this.supType;
    }

    public void setSupType(Short supType) {
        this.supType = supType;
    }

    public String getOrganizationCode() {
        return this.organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Short getState() {
        return this.state;
    }

    public void setState(Short state) {
        this.state = state;
    }
}
